﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace LostLib.Windows
{
	partial class KeySelectForm: Form
	{
		public KeySelectForm( )
		{
			InitializeComponent( );
		}

		public Keys Key
		{
			get
			{
				return mKey;
			}
			set
			{
				mKey = value;
				labelCombo.Text = value.ToString( );
			}
		}
		Keys mKey;

		private void KeySelectForm_KeyDown(object sender, KeyEventArgs e)
		{
			Key = e.KeyData;
			toolTips.SetToolTip(labelCombo, e.KeyCode.ToString());
		}

		private void buttonOK_Click(object sender, EventArgs e)
		{
			DialogResult = DialogResult.OK;
		}

		private void buttonCancel_Click(object sender, EventArgs e)
		{
			DialogResult = DialogResult.Cancel;
		}
	}
}
